package com.lichuang.fruitvarietysm.manage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 密保问题表
 * </p>
 *
 * @author shuaihang
 * @since 2019-07-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("security_question")
@ApiModel(value = "SecurityQuestion对象", description = "密保问题表")
public class SecurityQuestion implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户密保问题id")
    @TableId(value = "user_question_id", type = IdType.AUTO)
    private Integer userQuestionId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "密保问题id")
    private Integer questionId;

    @ApiModelProperty(value = "密保问题答案")
    private String questionAnswer;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "最后一次更新时间")
    private LocalDateTime updateTime;


}
